package univer.oko.gui;

import javax.swing.*;

public class CDTextField extends JTextField {
    public CDTextField() {
    }

    public CDTextField(int columns) {
        super(columns);
    }

    public CDTextField(int width, int height, int x, int y) {
        this.setBounds(x, y, width, height);
    }

    public CDTextField(int width, int height, int x, int y, InputVerifier verifier) {
        super();
        this.setBounds(x, y, width, height);
        this.setInputVerifier(verifier);
    }

    public boolean isEmpty() {
        return this.getText().trim().equals("");
    }
}
